package com.urchin.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * @author urchin
 * @Description
 * @PROJECT_NAME evolution
 * @create 2021-05-24 21:47
 */
@RestController
public class OrderZkController {
private static  final  String INVOKE_URL="http://cloud-payment-service";
@Resource
private RestTemplate restTemplate;
@GetMapping( value = "/consumer/payment/zk")
public String paymentInfo(){
   String result=restTemplate.getForObject(INVOKE_URL+"/payment/zk",String.class);
   return result;
}
}